import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { registerEcharts } from './plugins/echarts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'  // 导入 Element Plus 样式
import { zhCn } from 'element-plus/es/locales.mjs'
import 'dayjs/locale/zh-cn'  // 针对日期类的组件进行国际化
import { createPinia } from 'pinia'

const app = createApp(App)
registerEcharts(app);
app.use(createPinia()); // 全局注册Pinia
app.use(ElementPlus, {
    locale: zhCn
})
app.mount('#app')
